package org.marketlive.entity;

/**
 * Thrown when an attempt is made to create an entity with a code that already exists.
 */

/*
(C) Copyright MarketLive. 2006. All rights reserved.
MarketLive is a trademark of MarketLive, Inc.
Warning: This computer program is protected by copyright law and international treaties.
Unauthorized reproduction or distribution of this program, or any portion of it, may result
in severe civil and criminal penalties, and will be prosecuted to the maximum extent
possible under the law.
*/

public class NonUniqueCodeException extends Exception {

    /**
     * Constructs a new NonUniqueCodeException.
     */
    public NonUniqueCodeException() {
    }

    /**
     * Constructs a new NonUniqueCodeException with the given message.
     *
     * @param message The message to provide for the exception.
     */
    public NonUniqueCodeException(final String message) {
        super(message);
    }

    /**
     * Constructs a new NonUniqueCodeException with the given message and cause.
     *
     * @param message the message to provide for the exception.
     * @param cause the underlying cause of the exception.
     */
    public NonUniqueCodeException(final String message, final Throwable cause) {
        super(message, cause);
    }

    /**
     * Constructs a new NonUniqueCodeException with the given cause.
     *
     * @param cause the underlying cause of the exception.
     */
    public NonUniqueCodeException(final Throwable cause) {
        super(cause);
    }
}
